Page({
  data: {
    schema: [{
      label:'最小值',
      prop:'min',
      type:'number'
    },{
      label:'最大值',
      prop:'max',
      type:'number'
    },{
      label:'步长',
      prop:'step',
      type:'number'
    },{
      label:'是否禁用',
      prop:'disabled',
      type:'switch'
    },{
      label:'背景颜色',
      prop:'backgroundColor',
      type:'text'
    },{
      label:'选中颜色',
      prop:'activeColor',
      type:'text'
    },{
      label:'滑块的大小',
      prop:'blockSize',
      type:'text'
    },{
      label:'滑块的颜色',
      prop:'blockColor',
      type:'text'
    },{
      label:'是否显示value',
      prop:'showValue',
      type:'switch'
    }],
    formData: {
      min:0,
      max:100,
      step:1,
      disabled:false,
      activeColor:'#1aad19',
      backgroundColor:'#e9e9e9',
      blockSize:'28',
      blockColor:'#ffffff',
      showValue:false
    },
    value:50,
    title: '',
    result: '',
    zh:'',
    apiType: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },
  onLoad(options) {
    this.setData({
      apiType: options.zh,
      title: options.title,
      zh: options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  },
  getFormData(e){
    this.setData({
      formData:e.detail.formData
    })
  },
  bindChange(e){
    this.setData({
      result:e.detail
    })
  }
})
